import 'package:flutter/material.dart';
import 'package:flutter_statusbar_manager/flutter_statusbar_manager.dart';
// 基础配置类

//环境枚举类
enum Environment {
  development, //开发
  test, //测试
  production, //生产
}

class JvtdConfig {
  //配置环境信息
  static const Environment ENVIRONMENT_TYPE = Environment.development;

  //基础网址 分为开发、测试、生产
  static const String HTTP_URL_DEVELOPMENT = ""; //开发环境
  static const String HTTP_URL_TEST = ""; //测试环境
  static const String HTTP_URL_PRODUCTION = ""; //生产环境
  static String getHttpUrl() {
    switch (ENVIRONMENT_TYPE) {
      case Environment.development:
        return HTTP_URL_DEVELOPMENT;
      case Environment.test:
        return HTTP_URL_TEST;
      case Environment.production:
        return HTTP_URL_PRODUCTION;
    }
    return HTTP_URL_DEVELOPMENT;
  }

  //接口地址
  static String getHttpApiUrl() {
    return getHttpUrl() + "/api";
  }

  static const int SPLASH_TIME = 3;//闪屏页时间

  static const bool IS_MUST_LOGIN = false;//是否强制登录

  static const Duration PAGE_TRANSITION_DURATION = Duration(milliseconds: 400);//跳转时间
}

//颜色配置
class JvtdColor {
  static const Color THEME_COLOR = Colors.green; //主题色
  static const Color THEME_UNSELECT_COLOR = Colors.grey; //主题色未选中颜色
}

//样式配置
class JvtdStyle {}

class JvtdImage {
  static const String ICON_IMG = 'icon.png';//图标
  static const String SPLASH_IMG = 'icon_splash_img.png';//闪屏页图片
  //引导页图片
  static String getGuideImg(int num) {
    return 'icon_guide_' + num.toString() + '.png';
  }
  static const String EMPTY_IMG = 'icon_empty_img.png';//空白页图片
}
